module.exports = function HTTP(bojAll){
    return new Promise(function(resolve,reject){
        wx.request({
          header:{
              'content-type':'application',//默认值
            //   'acess_token':wx.getStorageSync('token')//token 令牌
          },
          ...bojAll,
          success(res){//成功返回
              resolve(res.data);
          },
          fail(err){//失败返回
            reject(err)
          },
          complete(){ //执行后回调

          }
        })
    })
}